<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!--引入分页标签  -->
<%@ taglib prefix="fkjava" uri="/page-taglib/page"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>kinglone 的主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="${author.paramValue}" name="author" />
<meta content="${keywords.paramValue}" name="keywords" />
<meta content="${description.paramValue}" name="description" />
<meta content="${copyright.paramValue}" name="copyright" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/reset.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/index.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/page.css">
</head>
<body>
    <div class="mainBody">
            <c:import url="../common/header.jsp"></c:import>
            <div class="mainContent">
                <c:import url="../common/left.jsp"></c:import>
            <div class="rightArticle">
                <div class="articleBox">
                    <div class="articleList">
                        <ul>
                            <c:forEach var ="article" items="${requestScope.jsonArray}" varStatus="stat" >
                                <li>
                                    <div class="articleItem">
                                        <h3><a href="${pageContext.request.contextPath}/article/show.jspx?id=${article.sysid}">${article.title}</a></h3>
                                        <p class="shortContent">${article.briefing}<a href="${pageContext.request.contextPath}/article/show.jspx?id=${article.sysid}">阅读全文</a></p>
                                        <div>发布时间：${article.publishDatetime} 评论（${article.commentCount}） </div>
                                    </div>
                                </li>
                            </c:forEach>
                        </ul>
                    </div>
                    <div class="pageBox">
                        <!-- 分页标签区 -->
                        <fkjava:pager
                        pageIndex="${pageModel.pageIndex}"
                        pageSize="${pageModel.pageSize}"
                        recordCount="${pageModel.recordCount}"
                        pageStyle="quotes"
                        submitUrl="${pageContext.request.contextPath}/index.jspx?pageIndex={0}" />
                    </div>
                </div>
            </div>
        </div>
            <c:import url="../common/footer.jsp"></c:import>
    </div>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/index.js"></script>
    <script type="text/javascript">
        var bgmList = <% out.print(request.getAttribute("MusicData")); %>;
        var base_url = "${pageContext.request.contextPath}";
    </script>
</body>
</html>